Telegram Group & Telegram Channel
Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4



tg-me.com/python_programming_challenges/74
Create:
Last Update:

Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4

BY 馃嚭馃嚘 Python Programming 小hallenges


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_programming_challenges/74

View MORE
Open in Telegram


馃嚭馃嚘 Python Programming 小hallenges Telegram | DID YOU KNOW?

Date: |

China鈥檚 stock markets are some of the largest in the world, with total market capitalization reaching RMB 79 trillion (US$12.2 trillion) in 2020. China鈥檚 stock markets are seen as a crucial tool for driving economic growth, in particular for financing the country鈥檚 rapidly growing high-tech sectors.Although traditionally closed off to overseas investors, China鈥檚 financial markets have gradually been loosening restrictions over the past couple of decades. At the same time, reforms have sought to make it easier for Chinese companies to list on onshore stock exchanges, and new programs have been launched in attempts to lure some of China鈥檚 most coveted overseas-listed companies back to the country.

If riding a bucking bronco is your idea of fun, you鈥檙e going to love what the stock market has in store. Consider this past week鈥檚 ride a preview.The week鈥檚 action didn鈥檛 look like much, if you didn鈥檛 know better. The Dow Jones Industrial Average rose 213.12 points or 0.6%, while the S&P 500 advanced 0.5%, and the Nasdaq Composite ended little changed.

馃嚭馃嚘 Python Programming 小hallenges from pl


Telegram 馃嚭馃嚘 Python Programming 小hallenges
FROM USA